package com.library.bookmanagement.mapper;

import com.github.pagehelper.Page;
import com.library.bookmanagement.entity.Read;
import com.library.bookmanagement.entity.ReaderKey;

import java.util.Date;
import java.util.List;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：t_read数据表映射接口
 */
public interface ReadMapper {
    int deleteByPrimaryKey(ReaderKey key);

    int insert(Read record);

    int insertSelective(Read record);

    Read selectByPrimaryKey(ReaderKey key);

    int updateByPrimaryKeySelective(Read record);

    int updateByPrimaryKey(Read record);

    Page<Read> selectByUserKey(Integer userId);

    List<Read> selectByScheduled(Date date,Date threeDate);

    List<Read> selectByDate(Date date);
}